package com.zx.mes.hyl.test.base.impl;

import com.alibaba.fastjson.JSON;
import com.zx.mes.hyl.test.base.FangWuI;
import org.apache.log4j.Logger;

/**
 * 第二个条码防务实现
 * @author hyl
 * @date 2018-2-26
 */
public class SimpleFangWu2 extends AbstractFangWu implements FangWuI{

    private static final Logger logger = Logger.getLogger(SimpleFangWu2.class);
    @Override
    public void doFangWu(String str) {

    }

    @Override
    public void beforeFangWu(String str) {
        super.beforeFangWu(str);
        getDianWei("D5221");
    }

    @Override
    public void afterFangwu(String str) {
        super.afterFangwu(str);
    }

    private void getDianWei(String address){
        logger.info(JSON.toJSONStringWithDateFormat("获取点位:"+address,"yyyy-MM-dd HH:mm:ss"));
    }
}
